<ControlTemplate xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}">
        <ScrollViewer HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}"
                      VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}">
            <Border SnapsToDevicePixels="True" BorderBrush="Black" BorderThickness="1" Margin="{TemplateBinding Padding}">
                <Border.Effect>
                    <DropShadowEffect Color="Black" ShadowDepth="5" />
                </Border.Effect>
                <ContentPresenter Content="{Binding Path=Document, RelativeSource={RelativeSource Mode=TemplatedParent}}" />
            </Border>
        </ScrollViewer>
    </Border>
</ControlTemplate>